package jxtend.processor.eclipse.visitor.handler.impl;

import org.eclipse.jdt.internal.codeassist.select.SelectionOnNameOfMemberValuePair;
import org.eclipse.jdt.internal.compiler.lookup.BlockScope;
import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;

@SuppressWarnings("restriction")
public class SelectionOnNameOfAnyAnnotationMemberValuePair extends SelectionOnNameOfMemberValuePair {

	private final SelectionOnNameOfMemberValuePair original;
	
	public SelectionOnNameOfAnyAnnotationMemberValuePair(SelectionOnNameOfMemberValuePair original) {
		super(original.name, original.sourceStart, original.sourceEnd, original.value);
		this.original = original;
	}

	@Override
	public void resolveTypeExpecting(BlockScope scope, TypeBinding requiredType) {
		super.resolveTypeExpecting(scope, (TypeBinding) null);

		original.binding = binding;
	}	
}
